package com.linwen.javase.基础;

/**
 * @author : linwen
 * @date : 下午10:57 2021/3/8
 */
public class 类内容加载顺序 {
    public static 类内容加载顺序 t1 = new 类内容加载顺序();


    static
    {
        System.out.println("静态块");
    }

    public 类内容加载顺序(){
        System.out.println("hello");
    }

    public void test(){
        System.out.println("hello test");
    }

    {
        System.out.println("构造块");
    }

    public static 类内容加载顺序 t2 = new 类内容加载顺序();

    public static void main(String[] args) {
        类内容加载顺序 tt = new 类内容加载顺序();
    }

}
